package io.renren.modules.user.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 人员变更
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2019-08-02 10:30:00
 */
@Data
@TableName("t_people_change")
public class TPeopleChangeEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 *
	 */
	@TableId
	private Integer id;
	/**
	 * 名称
	 */
	private String name;
	/**
	 * 变更类型
	 */
	private String changeType;
	/**
	 * 变更时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date changeTime;
	/**
	 * 说明
	 */
	private String station;
	/**
	 * 附件
	 */
	private String file;
	/**
	 * 状态
	 */
	private String state;
	/**
	 * 操作
	 */
	private Integer createUser;
	/**
	 * 操作时间
	 */
	private Date createTime;
	/**
	 *
	 */
	private String userId;
	/**
	 *
	 */
	private String other2;
	/*
	 * 人员信息
	 */
	@TableField(exist = false)
	private List<TPeopleEntity> peopleList;

	@TableField(exist = false)
	private Integer peopleId;
	/**
	 *
	 */
	@TableField(exist = false)
	private String peopleName;
	/**
	 *
	 */
	@TableField(exist = false)
	private Integer deptId;
	/**
	 *
	 */
	@TableField(exist = false)
	private String deptName;
	/**
	 * 衔级
	 */
	@TableField(exist = false)
	private Integer postId;
	/**
	 *
	 */
	@TableField(exist = false)
	private String postName;
	/**
	 * 是否评残
	 */
	@TableField(exist = false)
	private String isDisabled;
	/**
	 * 退出类型
	 */
	@TableField(exist = false)
	private String outType;
	/**
	 * 退出时间
	 */
	@TableField(exist = false)
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date outTime;
	/**
	 * 退出原因
	 */
	@TableField(exist = false)
	private String reasion;

  /*
  * 扩展
  * */
    @TableField(exist = false)
    private String classes;
	/**
	 *
	 */
	@TableField(exist = false)
	private String dept;
	/**
	 *
	 */
	@TableField(exist = false)
	private String zdept;

	/*
	* 衔级 行政职务
	* */
	@TableField(exist = false)
	private String title;
	@TableField(exist = false)
	private String administration;

	@TableField(exist = false)
	private String fileUrl;
}
